package com.zhangjie.servicemap.controller;

import com.zhangjie.internalcommon.dto.ResponseResult;
import com.zhangjie.internalcommon.response.TrackResponse;
import com.zhangjie.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zj
 * @Date: 2024/2/29 - 02 - 29 - 15:50
 * @Description: com.zhangjie.servicemap.controller
 * @version: 1.0
 */
@RestController
@RequestMapping("/track")
public class TrackController {

    @Autowired
    TrackService trackService;

    @PostMapping("/add")
    public ResponseResult<TrackResponse> add(String tid) {

        return trackService.add(tid);
    }
}
